import { markRaw } from 'vue';
import { Cpu } from "@element-plus/icons-vue";
import LoaderNode from './loader_node.vue';
import LoaderProperty from './loader_property.vue';

// 导出当前目录的节点元数据
 export default {
  type: 'loader',
  name: '文档加载节点',
  category: '文档工具节点',
  icon: markRaw(Cpu),
  serializableFields: ['loopMode', 'loopParams'],
  defaultData: {
    loopMode: 'for',
    loopParams: {},
  },
  component: markRaw(LoaderNode),
  propertyComponent: markRaw(LoaderProperty),
};